package com.shangxian.giveithome.exception;


import com.shangxian.giveithome.result.Result;
import com.shangxian.giveithome.code.Code;

public class ExceptionUtils {

    public static void error(Code code) {
        throw new ApiException(new Result(code));
    }
}
